{loop $calendar $week}
<div class="week">
    {loop $week $day}
    <nav class="day {if !empty($day['today'])}today{/if}" data-day="{$day['day']}" data-month="{$day['month']}" data-date="{$day['date']}" data-signed="{$day['signed']}">
        {if !empty($day['day'])}
            <p class="num">{$day['day']}</p>
            {if !empty($day['title'])}
                <p class="act" style="background: {$day['color']};">{$day['title']}</p>
            {/if}
            {if !empty($day['signed'])}
                <i class="icon icon-check signed"></i>
            {/if}
        {/if}
    </nav>
    {/loop}
</div>
{/loop}